//
//  FZRemoteNotificationParser.h
//  EnglishTalk
//
//  Created by 周咏 on 15/9/25.
//  Copyright (c) 2015年 Feizhu Tech. All rights reserved.
//  通知解析器
//

#import <Foundation/Foundation.h>

@protocol FZRemoteNotificationParserDelegate <NSObject>

@required
-(instancetype)initControllerWithRemoteNotificationParameters:(NSDictionary*)parameters;

@end

@interface FZRemoteNotificationParser : NSObject

+ (instancetype)sharedRemoteNotificationParser;

    //处理推送信息，极光推送，若不能处理返回NO
-(BOOL)handleRemoteNotification:(NSDictionary*)parameters tabcontroller:(UITabBarController*)tabBarController;

-(void)handleRemoteNotificationApplicationStateActive:(NSDictionary*)parameters;

/**
 *  融云推送
 *
 *  @param parameters
 *  @param tabBarController
 */
-(BOOL)handleRongYunRemoteNotification:(NSDictionary *)parameters tabcontroller:(UITabBarController *)tabBarController;

/**
 *  本地推送
 *
 *  @param
 */
-(void)handleRongYunLocalNotification:(NSDictionary *)parameters tabBarController:(UITabBarController*)tabBarController;
/**
 *  跳转
 */
-(void)pushOrPresentViewController:(BOOL)isPresent paramteres:(NSDictionary*)paramteres classType:(Class)classType tabcontroller:(UITabBarController *)tabBarController;
@end
